package com.lovejes.app.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_jes_upload table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_jes_upload"
 */

public abstract class BaseTJesUpload  implements Serializable {

	public static String REF = "TJesUpload";
	public static String PROP_TYPE = "Type";
	public static String PROP_OLDNAME = "Oldname";
	public static String PROP_BUSSTYPE = "Busstype";
	public static String PROP_BUSSID = "Bussid";
	public static String PROP_DIR = "Dir";
	public static String PROP_UPSIZE = "Upsize";
	public static String PROP_NAME = "Name";
	public static String PROP_ID = "Id";
	public static String PROP_UPTIME = "Uptime";


	// constructors
	public BaseTJesUpload () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTJesUpload (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String bussid;
	private java.lang.String busstype;
	private java.lang.String name;
	private java.lang.String oldname;
	private java.lang.String type;
	private java.lang.String upsize;
	private java.util.Date uptime;
	private java.lang.String dir;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: BUSSID
	 */
	public java.lang.String getBussid () {
		return bussid;
	}

	/**
	 * Set the value related to the column: BUSSID
	 * @param bussid the BUSSID value
	 */
	public void setBussid (java.lang.String bussid) {
		this.bussid = bussid;
	}



	/**
	 * Return the value associated with the column: BUSSTYPE
	 */
	public java.lang.String getBusstype () {
		return busstype;
	}

	/**
	 * Set the value related to the column: BUSSTYPE
	 * @param busstype the BUSSTYPE value
	 */
	public void setBusstype (java.lang.String busstype) {
		this.busstype = busstype;
	}



	/**
	 * Return the value associated with the column: NAME
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: NAME
	 * @param name the NAME value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: OLDNAME
	 */
	public java.lang.String getOldname () {
		return oldname;
	}

	/**
	 * Set the value related to the column: OLDNAME
	 * @param oldname the OLDNAME value
	 */
	public void setOldname (java.lang.String oldname) {
		this.oldname = oldname;
	}



	/**
	 * Return the value associated with the column: TYPE
	 */
	public java.lang.String getType () {
		return type;
	}

	/**
	 * Set the value related to the column: TYPE
	 * @param type the TYPE value
	 */
	public void setType (java.lang.String type) {
		this.type = type;
	}



	/**
	 * Return the value associated with the column: UPSIZE
	 */
	public java.lang.String getUpsize () {
		return upsize;
	}

	/**
	 * Set the value related to the column: UPSIZE
	 * @param upsize the UPSIZE value
	 */
	public void setUpsize (java.lang.String upsize) {
		this.upsize = upsize;
	}



	/**
	 * Return the value associated with the column: UPTIME
	 */
	public java.util.Date getUptime () {
		return uptime;
	}

	/**
	 * Set the value related to the column: UPTIME
	 * @param uptime the UPTIME value
	 */
	public void setUptime (java.util.Date uptime) {
		this.uptime = uptime;
	}



	/**
	 * Return the value associated with the column: DIR
	 */
	public java.lang.String getDir () {
		return dir;
	}

	/**
	 * Set the value related to the column: DIR
	 * @param dir the DIR value
	 */
	public void setDir (java.lang.String dir) {
		this.dir = dir;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.app.domain.TJesUpload)) return false;
		else {
			com.lovejes.app.domain.TJesUpload tJesUpload = (com.lovejes.app.domain.TJesUpload) obj;
			if (null == this.getId() || null == tJesUpload.getId()) return false;
			else return (this.getId().equals(tJesUpload.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}